<%@ include file="/common/taglibs.jsp"%>

<h1><s:text name="document.history.title"/></h1>

<!-- TODO need to add i18n - note displaytag wont pick up messages in MetadataResources.properties -->
<s:set name="documents" value="documents" scope="request"/>
<display:table name="documents" class="table" requestURI="" id="documentList" export="true" pagesize="25" uid="document">
    <display:column property="title" sortable="true" title="Title"/>
    <display:column property="description" sortable="true" title="Description" />
    <display:column>
		<a href="${pageContext.request.contextPath}/metadata/${document.file.name}">${document.filePath}</a>
    </display:column>
    <display:column property="lastModified" sortable="true" title="Last Modified" />
	<display:column>
		<a href="${pageContext.request.contextPath}/metadata/editDocument.html?selectedFile=${document.filePath}"><s:text name="edit"/></a>
	</display:column>
	<display:column>
		<a href="${pageContext.request.contextPath}/metadata/deleteDocument.html?selectedFile=${document.filePath}"><s:text name="delete"/></a>
	</display:column>
</display:table>